gdk/wayland: Use serial of the latest implicit grab available
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 19 Oct 2022 10:46:09 +0000 (12:46 +0200)
committerSimon McVittie <smcv@debian.org>
Fri, 18 Nov 2022 09:56:14 +0000 (09:56 +0000)
commite5112eba67b8dd8b3842eaba1bb45da2739e3831
treea969e40fedb06fa2410ba9371e534297fe6c9d4d
parentec760b27b4fb85ab718595642c5f6b1b07341a24
gdk/wayland: Use serial of the latest implicit grab available

When getting the serial for primary/clipboard selections we used a
function that largely relied on a GdkEvent being passed. We have
another available function that looks up the most recent serial
given the ongoing touch/tablet input as well.

This is the second best, compared to actually knowing the
input/device from the event that was received by the UI an triggered
the clipboard operation, and is already in use in other places
(e.g. window dragging). It is valid for these situations too.

Bug: https://gitlab.gnome.org/GNOME/gtk/-/issues/5250
Origin: upstream, 4.8.3, commit:873c304a9460ab30c4acf8e922605412cbededf8

Gbp-Pq: Name gdk-wayland-Use-serial-of-the-latest-implicit-grab-availa.patch
gdk/wayland/gdkdevice-wayland.c
gdk/wayland/gdkprimary-wayland.c